﻿using UnityEngine;
using System.Collections;

public class UI : MonoBehaviour {

	void OnGUI(){
		if (GameController.showScore == false) {
			return;
		}
		
		
		GUIStyle style = new GUIStyle ();
		style.normal.textColor = Color.black;
		style.fontSize = 18;
		
		//显示分数
		GUI.Label (new Rect(35,17, 80,40),"Score:"+GameController.score, style);
	}
}
